package com.wish.contract.mapper;

import com.wish.contract.entity.SfTermination;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wish.contract.entity.TCwPaymentPlan;
import com.wish.contract.entity.TSfContract;
import com.wish.contract.entity.vo.RequestSearchSfsDto;
import com.wish.contract.entity.vo.ResponseSearchSfsDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaocui
 * @since 2022-03-29
 */
@Repository
public interface SfTerminationMapper extends BaseMapper<SfTermination> {

    List<ResponseSearchSfsDto> searchContractList(RequestSearchSfsDto requestSearchSfsDto);

    TSfContract selectSearchById(@Param("sfContractId") Long sfContractId);

    List<TCwPaymentPlan> selectcwPaymentPlanList(@Param("sfContractId") Long sfContractId, @Param("index") int index);

    void UpdateState(@Param("sfContractId") Long sfContractId);
}
